$(document).ready(function(){
	
	//adds close and continue buttons
	$('#treasure').append('<div class="closebox"></div>');
	$('#treasure').append('<div class="continueButton">Continue</div>');
	
	//opens treasure window when character clicked
	$('#character').click(function() {
		$('#treasure').show();
		
		//close box hides treasure window
		$('.closebox').click(function() {
			$('#treasure').hide();
		});
		
		//continue button hides treasure window and launches animation + transition
		$('.continueButton').click(function() {
			$('#treasure').hide();
			
			animateCharacter();
		});
	});
	
	//character animation
	function animateCharacter() {
		$('character').animate({
		
		});
	}
	
	
});
